#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments # (error catching)
. ${WM_PROJECT_DIR:?}/wmake/scripts/have_cgal

#------------------------------------------------------------------------------
unset COMP_FLAGS LINK_FLAGS

if have_cgal
then
    wmake $targetType PolyhedronReader
    export COMP_FLAGS='-IPolyhedronReader'
    export LINK_FLAGS='${CGAL_LIBS} -lPolyhedronReader'
else
    export COMP_FLAGS="-DNO_CGAL"
fi

wmake $targetType

#------------------------------------------------------------------------------
